home *** CD-ROM | disk | FTP | other *** search
/ Winzipper / Winzipper_ISO.iso / programming / oracle7 7.2 / OCI72 / OCIKPR.H < prev    next >
Encoding:
C/C++ Source or Header  |  1995-05-18  |  4.9 KB  |  114 lines

  1. /*
  2.  * $Header: ocikpr.h 7020200.1 95/02/15 18:37:27 cli Generic<base> $ 
  3.  */
  4.  
  5. /* Copyright (c) 1991 by Oracle Corporation */
  6. /*
  7.    NAME
  8.      ocikpr.h - header of K & R compilers
  9.    MODIFIED   (MM/DD/YY)
  10.     dchatter   02/08/95 -  olog call; drop onblon
  11.     dchatter   10/31/94 -  new functions for non-blocking oci
  12.     rkooi2     11/27/92 -  Changing datatypes (in comments) and return types 
  13.     rkooi2     10/26/92 -  More portability mods 
  14.     rkooi2     10/18/92 -  Changed to agree with oci.c 
  15.     sjain      03/16/92 -  Creation 
  16. */
  17.  
  18. /*
  19.  *  Declare the OCI functions.
  20.  *  Prototype information is commented out.
  21.  *  Use this header for non-ANSI C compilers.
  22.  *  Note that you will need to include ocidfn.h in the .c files
  23.  *    to get the definition for cda_def.
  24.  */
  25.  
  26. #ifndef OCIKPR
  27. #define OCIKPR
  28.  
  29. #include <oratypes.h>
  30.  
  31. sword  obndra( /*_ struct cda_def *cursor, text *sqlvar, sword sqlvl,
  32.                    ub1 *progv, sword progvl, sword ftype, sword scale,
  33.                    sb2 *indp, ub2 *alen, ub2 *arcode, ub4 maxsiz,
  34.                    ub4 *cursiz, text *fmt, sword fmtl, sword fmtt _*/ );
  35. sword  obndrn( /*_ struct cda_def *cursor, sword sqlvn, ub1 *progv,
  36.                    sword progvl, sword ftype, sword scale, sb2 *indp,
  37.                    text *fmt, sword fmtl, sword fmtt _*/ );
  38. sword  obndrv( /*_ struct cda_def *cursor, text *sqlvar, sword sqlvl,
  39.                    ub1 *progv, sword progvl, sword ftype, sword scale,
  40.                    sb2 *indp, text *fmt, sword fmtl, sword fmtt _*/ );
  41. sword  obreak( /*_ struct cda_def *lda _*/ );
  42. sword  ocan  ( /*_ struct cda_def *cursor _*/ );
  43. sword  oclose( /*_ struct cda_def *cursor _*/ );
  44. sword  ocof  ( /*_ struct cda_def *lda _*/ );
  45. sword  ocom  ( /*_ struct cda_def *lda _*/ );
  46. sword  ocon  ( /*_ struct cda_def *lda _*/ );
  47. sword  odefin( /*_ struct cda_def *cursor, sword pos, ub1 *buf,
  48.                    sword bufl, sword ftype, sword scale, sb2 *indp,
  49.                    text *fmt, sword fmtl, sword fmtt, ub2 *rlen, 
  50.                    ub2 *rcode _*/ );
  51. sword  odescr( /*_ struct cda_def *cursor, sword pos, sb4 *dbsize,
  52.                    sb2 *dbtype, sb1 *cbuf, sb4 *cbufl, sb4 *dsize,
  53.                    sb2 *prec, sb2 *scale, sb2 *nullok _*/ );
  54. sword  odessp( /*_ struct cda_def *cursor, text *objnam, size_t onlen,
  55.                    ub1 *rsv1, size_t rsv1ln, ub1 *rsv2, size_t rsv2ln,
  56.                    ub2 *ovrld, ub2 *pos, ub2 *level, text **argnam,
  57.                    ub2 *arnlen, ub2 *dtype, ub1 *defsup, ub1* mode,
  58.                    ub4 *dtsiz, sb2 *prec, sb2 *scale, ub1 *radix,
  59.                    ub4 *spare, ub4 *arrsiz _*/ );
  60. sword  oerhms( /*_ struct cda_def *lda, sb2 rcode, text *buf,
  61.                    sword bufsiz _*/ );
  62. sword  oermsg( /*_ sb2 rcode, text *buf _*/ );
  63. sword  oexec ( /*_ struct cda_def *cursor _*/ );
  64. sword  oexfet( /*_ struct cda_def *cursor, ub4 nrows,
  65.                    sword cancel, sword exact _*/ );
  66. sword  oexn  ( /*_ struct cda_def *cursor, sword iters, sword rowoff _*/ );
  67. sword  ofen  ( /*_ struct cda_def *cursor, sword nrows _*/ );
  68. sword  ofetch( /*_ struct cda_def *cursor _*/ );
  69. sword  oflng ( /*_ struct cda_def *cursor, sword pos, ub1 *buf,
  70.                    sb4 bufl, sword dtype, ub4 *retl, sb4 offset _*/ );
  71. sword  olog  ( /*_ struct cda_def *lda, ub1 *hst, 
  72.                    text *uid, sword uidl,
  73.                    text *psw, sword pswl, 
  74.                    text *conn, sword connl, 
  75.                    ub4 mode _*/ );
  76. sword  ologof( /*_ struct cda_def *lda _*/ );
  77. sword  oopen ( /*_ struct cda_def *cursor, struct cda_def *lda,
  78.                    text *dbn, sword dbnl, sword arsize,
  79.                    text *uid, sword uidl _*/ );
  80. sword  oopt  ( /*_ struct cda_def *cursor, sword rbopt, sword waitopt _*/ );
  81. sword  oparse( /*_ struct cda_def *cursor, text *sqlstm, sb4 sqllen,
  82.                    sword defflg, ub4 lngflg _*/ );
  83. sword  orol  ( /*_ struct cda_def *lda _*/ );
  84.  
  85. void sqlld2  ( /*_ struct cda_def *lda, text *cname, sb4 *cnlen _*/ );
  86. void sqllda  ( /*_ struct cda_def *lda _*/ );
  87.  
  88. /* non-blocking functions */
  89. sword onbset ( /*_ struct cda_def *lda _*/ ); 
  90. sword onbtst ( /*_ struct cda_def *lda _*/ ); 
  91. sword onbclr ( /*_ struct cda_def *lda _*/ ); 
  92.  
  93.  
  94. /* older calls ; preferred equivalent calls above */
  95. sword  odsc  ( /*_ struct cda_def *cursor, sword pos, sb2 *dbsize,
  96.                    sb2 *fsize, sb2 *rcode, sb2 *dtype, sb1 *buf,
  97.                    sb2 *bufl, sb2 *dsize _*/ );
  98. sword  oname ( /*_ struct cda_def *cursor, sword pos, sb1 *tbuf,
  99.                    sb2 *tbufl, sb1 *buf, sb2 *bufl _*/ );
  100. sword  olon  ( /*_ struct cda_def *lda, text *uid, sword uidl,
  101.                    text *pswd, sword pswdl, sword audit _*/ );
  102. sword  orlon ( /*_ struct cda_def *lda, ub1 *hda, text *uid,
  103.                    sword uidl, text *pswd, sword pswdl, sword audit _*/ );
  104. sword  osql3 ( /*_ struct cda_def *cda, text *sqlstm, sword sqllen _*/ );
  105.  
  106. #endif  /* OCIKPR */
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.